package com.mobzilla.activity;


import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ListView;

public class MainMenuActivity extends Activity
{

	ListView list;
	CustomAdapter adapter;

	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.mainmenu);

		list = (ListView) findViewById(R.id.menulist);
		
		adapter = new CustomAdapter(this);
		list.setAdapter(adapter);
		
	}

	@Override
	public void onDestroy()
	{
		list.setAdapter(null);
		super.onDestroy();
	}

	public OnClickListener listener = new OnClickListener()
	{
		public void onClick(View arg0)
		{
			adapter.notifyDataSetChanged();
		}
	};
}
